package com.ailargemodel.mapper;


import com.ailargemodel.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 喜洋洋
* @description 针对表【user(存储学生相关的信息)】的数据库操作Mapper
* @createDate 2024-07-28 15:43:44
* @Entity generator.domain.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {


    User selectUser(@Param("name") String name,@Param("studyId") String studyId);

    User selectByUser(@Param("user") User user);


    Boolean updateQuestionNum(@Param("user") User user,@Param("lastQuestionNum") int lastQuestionNum);

    @Select("select * from User")
    List<User> selectAll();
}




